package com.example.index.util;

import android.app.Activity;
import android.widget.Toast;
import es.dmoral.toasty.Toasty;

public class TraceUtils {


    public static void onActivityCreate(Activity activity) {
        Toasty.warning(activity.getApplication(), activity.getComponentName().getShortClassName() + " create", Toast.LENGTH_SHORT)
                .show();
    }


    public static void onActivityDestroy(Activity activity) {
        Toasty.warning(activity.getApplication(), activity.getComponentName().getShortClassName() + "destroy",
                Toast.LENGTH_SHORT)
                .show();
    }
}
